import request from '../request'

//获取用户自己的纸条
export const getUserPaperList = params => request.globalRequest(`/api/v1/appPaper/getUserPaperList`, 'GET', params)

//新增抽纸
export const addPaper = params => request.globalRequest(`/api/v1/appPaper/paper/add`, 'POST', params)

//修改抽纸
export const editPaper = params => request.globalRequest(`/api/v1/appPaper/paper/edit`, 'POST', params)

//抽纸详情
export const getPaperInfo = params => request.globalRequest(`/api/v1/appPaper/getPaperInfo`, 'GET', params)

//删除抽纸
export const deletePaper = params => request.globalRequest(`/api/v1/appPaper/paper/delete`, 'GET', params)